package com.sync.syncmasterdata;


import com.sync.syncmasterdata.baidu.service.BaiduService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
class SyncMasterDataApplicationTestsBaidu {

    @Autowired
    private BaiduService baiduService;


    @Test
    public void baiduTest() {
//        String accessToken=baiduService.getBaiduAccessToken("yf8tVtgw3onZCtOj6bo6FucQ", "nkIpo2Lu8CrpCNe4B6hxkxcBGiYqzMCH");
        Float result = baiduService.simnetServiceForRest("我爱北京天安门", "天安门爱我");
        System.out.println("相似度计算结果:" + result);
        
    }
}
